<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <meta name="keywords" content="Poosip, 補習, 考古題" />
    <meta name="description" content="補習, 考古題" />
    <title>{% block title %}{{ application_name }}{% endblock %}</title>
        <script src="http://ajax.googleapis.com/ajax/libs/ext-core/3/ext-core.js" language="JavaScript"></script>
    <link href="/static/css/base.css" rel="stylesheet" type="text/css"/>
    {% block head %}{% endblock %}
  </head>
  <body {% block bodyattributes %}{% endblock %}>
    {% block header %}
      <div id="header">
        <div class="login">
          {% if user %}
            {{ user.nickname }}</span> |
            <span class="item nickname"><a href="/user/me">My account</a></span> |
            <span class="item"><a href="{{ logout_url|escape }}">Sign out</a></span>
          {% else %}
                    Sign in using
            <span class="item"><a href="{{ openid_login_url|escape }}">OpenId</a></span>
                        or
            <span class="item"><a href="{{ login_url|escape }}">Google Account</a></span>
          {% endif %}
        </div>
        <div class="title"><a href="/">Pó͘-si̍p Pan 補習班</a></div>
      </div>
    {% endblock %}
        <div id="left-nav-panel">
                <div class="menu-group">Navigation</div>
                <div class="menu-item"><a href="/">start page</a></div>
                {% if rights.upload_pictures %}
                <div class="menu-item"><a href="/upload">upload picture</a></div>
                {% endif %}
                {% if user_admin %}
                <div class="menu-item"><a href="/users">users</a></div>
                {% endif %}
               
               
                <div class="menu-group">Tags</div>
               
                <div class="menu-group">Info</div>
                <div class="menu-item">pictures: {{ pics_count }}</div>
                {% block leftnavpanel %}{% endblock %}
        </div>
    <div id="body">{% block body %}{% endblock %}</div>
    {% block footer %}{% endblock %}
  </body>
</html>

